Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove props from Icon #315

Merged

Conversation

smithambera
Copy link

@smithambera smithambera commented Nov 8, 2021

Fixes https://linear.app/chromaui/issue/CH-876/remove-color-prop-from-ds-icon

Description

Feedback from @domyen:

Our current ergonomics are to define styles outside of the component markup (i.e., in styled and not inline). It seems like we’re moving to that even more with the *.style.ts pattern I saw in one of your PRs. I don’t think the Icon should have a color prop because it’s a departure from these ergonomics.

As such, I removed the color prop. I also removed the block prop for the same reason - it didn't seem to be used anywhere anyway.

📦 Published PR as canary version: 6.4.2-canary.315.c122c5e.0

✨ Test out this PR locally via:

npm install @storybook/design-system@6.4.2-canary.315.c122c5e.0
# or 
yarn add @storybook/design-system@6.4.2-canary.315.c122c5e.0

- remove unneeded stories
@smithambera smithambera marked this pull request as ready for review November 8, 2021 16:49
Copy link
Member

@domyen domyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Amber, this looks good. One blocking comment (no pun intended) 🤗

src/components/Icon.tsx Show resolved Hide resolved
@domyen
Copy link
Member

domyen commented Nov 8, 2021

lgtm! merging

@domyen domyen merged commit c122c5e into fix/styles-after-migration Nov 8, 2021
@domyen domyen deleted the amber/ch-876-remove-color-prop-from-ds-icon branch November 8, 2021 20:00
@github-actions
Copy link
Contributor

🚀 PR was released in v7.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants